 

<jsp:directive.page import="java.sql.*"/>
<jsp:directive.page import="Connectivity.ConnectionManager"/>
 <%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
String Activity = request.getParameter("Activity")!=null?request.getParameter("Activity"):"2";
int role_id=Integer.parseInt(""+(session.getAttribute("role_id")));
int emp_id=Integer.parseInt(""+(session.getAttribute("emp_id")));



%>
   <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" 
   "http://www.w3.org/TR/html4/loose.dtd">

   <html>

      <head>
         <meta http-equiv="Content-Type" 
            content="text/html; charset=windows-1256">
         <title>   Header </title>
      
      
      <style type="text/css">

.glidetext{
position: relative;
/*Set initial position of your text. Make it just enough to hide the text from view:*/
left: -500px;
}

</style>

<script type="text/javascript">

//Sequential fly-in text script- by JavaScriptKit.com
//For this script and 400+ more, visit http://www.javascriptkit.com
//This notice must stay intact for use

var pausebetweenmsg=10 //customize pause in miliseconds between each message showing up (3000=3 seconds)
var glidespeed=50 //customize glide speed in pixels per frame.

var curobjindex=0

function actualstyle(el, cssproperty){
if (el.currentStyle)
return el.currentStyle[cssproperty]
else if (window.getComputedStyle){
var elstyle=window.getComputedStyle(el, "")
return elstyle.getPropertyValue(cssproperty)
}
}

function collectElementbyClass(){
var classname="glidetext"
glidearray=new Array()
var inc=0
var alltags=document.all? document.all : document.getElementsByTagName("*")
for (i=0; i<alltags.length; i++){
if (alltags[i].className==classname)
glidearray[inc++]=alltags[i]
}
if (glidearray.length>0)
onebyoneglide()
}

function onebyoneglide(){
if (curobjindex<glidearray.length)
glidetimer=setInterval("glideroutine()",50)
}

function glideroutine(){
if (parseInt(actualstyle(glidearray[curobjindex], "left"))<0)
glidearray[curobjindex].style.left=parseInt(actualstyle(glidearray[curobjindex], "left"))+50+"px"
else{
glidearray[curobjindex].style.left=0
curobjindex++
clearInterval(glidetimer)
setTimeout("onebyoneglide()", pausebetweenmsg)
}
}

if (window.addEventListener)
window.addEventListener("load", collectElementbyClass, false)
else if (window.attachEvent)
window.attachEvent("onload", collectElementbyClass)
else if (document.getElementById)
window.onload=collectElementbyClass

</script>
      
      
      </head>
 
 



	
  </SCRIPT>
      
<body bgcolor="white" background=/ETH/DCSIS_E/Form/Activity_files/backgrund-page.gif >

<table border=1 width=100% height=100%>
<tr><td>
<table align=right height=20% width=100% >
			<tr>
			  <td class="glidetext" style="left: -800px" align=right><%=(session.getAttribute("firm_name"))%></td>
			 <td class="glidetext" style="left: -1500px" align=right><img src="<%=basePath%>images\Company.jpg" height=119 width=109></td> 
			 </tr>
			</table>

 </tr></td>
 <tr><td><marquee>welcome <%=(session.getAttribute("uname")) %></marquee>

 </td></tr>
 
 <tr><td>
 <table width=100% height=80%>
 <tr >
 <table id=Employee align=left border=1  width=20% cellspacing="20" cellpadding="8">
 <%
 String mainimage=null,maindesc=null;
 Connection con=null;
 PreparedStatement prst=null,prst1=null;
		String firm_id=null,firm_name=null,firm_city=null,firm_image=null;
	try
	{	
		con=ConnectionManager.getConnection();
  
	String querry="select mlm.main_link_id,mlm.main_link_desc,mlm.main_link_information,trim(mlm.main_link_image_location)as image_path ";
	 querry=querry+"from access_control_list acl JOIN main_link_master mlm ON (acl.main_link_id=mlm.main_link_id and  mlm.status='V' and acl.role_id="+role_id+") ";
     querry=querry+"group by mlm.main_link_desc,mlm.main_link_information,trim(mlm.main_link_image_location),mlm.main_link_id,mlm.order_id ";
     querry=querry+"order by mlm.order_id ";
	 prst=con.prepareStatement(""+querry);
	    ResultSet rs=prst.executeQuery();
	    if(rs.equals(null))
	  {
 
out.println(" Error");
 		
 	   }
 	   else
 	   { int cnt=1;
 	   while(rs.next())
 	   {
if(Activity.equals(rs.getString(1)))
{
mainimage=rs.getString(4);
maindesc=rs.getString(3);

}
  %>
  
<tr><td align="center">
<a href='/Genius/form/general/userLogged.jsp?Activity=<%=rs.getString(1)%>'><%=rs.getString(2)%></a></td></tr>
<%}

} %>

</tr>
<tr><td align="center">
<a href='/Genius/form/general/Login.jsp'>Logout</a></td></tr>

  
 
</tr>
</tr>   
<%
}
catch(Exception e)
{e.printStackTrace();}

 %> </tr></table>

      </body>
	
   </html>